<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"
    import="CommunityController.*,java.util.*,java.io.*,java.sql.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="STYLESHEET" type="text/css" href="/KOMORIUTA/css/community.css">
<link rel="STYLESHEET" type="text/css" href="/KOMORIUTA/page/page.css">
<link rel="stylesheet" type="text/css" href="/KOMORIUTA/Mypage/Css/MpBord.css"> 
<script src="/KOMORIUTA/community/BabyCare/CM_Babycare_Script.js" type="text/JavaScript"></script>
<script src="/KOMORIUTA/community/BabyCare/jquery.js" type="text/JavaScript"></script>
<script>
function doList(page){
	document.fbFrm.currentPage.value=page;
	document.fbFrm.submit();
}
</script>
<style type="text/css">
a:link, a:visited, a:active{color: black; text-decoration:none;}
a:hover{text-decoration:underline;}
</style>
</head>
<%
String nick=(String)session.getAttribute("Mem_Nick");
ArrayList<BCBoardBean> datas=(ArrayList<BCBoardBean>)request.getAttribute("list");
%>
<body>
<form action="BCBoardAction.do" method="post" name="fbFrm" class="fbFrm">
<input type="hidden" name="action" value="cm_bc_list" />
<input type="hidden" name="nick" value="<%= nick%>" />
<input type="hidden" name="currentPage" />

<table height="30" cellpadding=0 cellspacing=0 width="700" style=" border-bottom: 1px solid #e6e6e6 ">
	<tr>
		<td colspan="5"><img alt="" src="<%=request.getContextPath() %>/photo/img/Cm_Free_baby.png"></td>
	</tr>
		
	<tr>
		<td width="50" style="background-color: #f7f7f7; border-top: 2px solid #cbcbcb">
			<img alt="" src="<%=request.getContextPath() %>/photo/img/Cm_Free_Board_1.png">
		</td>
		<td width="415" align="center" style="background-color: #f7f7f7; border-top: 2px solid #cbcbcb">
			<img alt="" src="<%=request.getContextPath() %>/photo/img/Cm_Free_Board_2.png">
		</td>
		<td width="100" style="background-color: #f7f7f7; border-top: 2px solid #cbcbcb">
			<img alt="" src="<%=request.getContextPath() %>/photo/img/Cm_Free_Board_3.png">
		</td>
		<td width="80" align="center" style="background-color: #f7f7f7; border-top: 2px solid #cbcbcb">
			<img alt="" src="<%=request.getContextPath() %>/photo/img/Cm_Free_Board_4.png">
		</td>
		<td width="55" style="background-color: #f7f7f7; border-top: 2px solid #cbcbcb">
			<img alt="" src="<%=request.getContextPath() %>/photo/img/Cm_Free_Board_5.png">
		</td>
	</tr>
</table>
<%
	for(BCBoardBean bCBoardBean :datas){
%>
<table cellpadding=0 cellspacing=0 width="700">
	
	
	<tr height="23" style="border-bottom: 1px solid #0f89d2" onmouseover="this.style.backgroundColor='0f89d2'" onmouseout="this.style.backgroundColor=''">
		<td width="50" align="center" style="border-bottom: 1px solid #e6e6e6"><%= bCBoardBean.getId() %></td>
		<td width="435" style="border-bottom: 1px solid #e6e6e6">
		<%if(bCBoardBean.getRe_step()>0){
			for(int a=0;a<=bCBoardBean.getRe_level()*2;a++){
		%>
		&nbsp;
		<%
			}
			%>
			<img alt="" src="<%=request.getContextPath() %>/photo/img/re.png" >
			<%
		}
		%>
		<a href="/KOMORIUTA/BCBoardAction.do?action=cm_bc_read&id=<%=bCBoardBean.getId() %>&nick=<%=nick %>" >
		<%= bCBoardBean.getBc_title() %></a>
		</td>
		<td width="80"  style="border-bottom: 1px solid #e6e6e6"><a href=javascript:mass("<%=bCBoardBean.getId()%>")><%=bCBoardBean.getBc_nick()%></a>
		<a href=javascript:WriteGo("<%=nick%>","<%=bCBoardBean.getBc_nick()%>") id="mass<%=bCBoardBean.getId()%>" class="mass"><img alt=""  src="<%=request.getContextPath()%>/photo/img/message_Send.png" ></a></td>
		<td width="80" align="center" style="border-bottom: 1px solid #e6e6e6; font-size: 12px;"><%= bCBoardBean.getBc_date() %></td>
		<td width="55" align="center" style="border-bottom: 1px solid #e6e6e6"><%= bCBoardBean.getBc_viewcount() %></td>
	</tr>
</table>
<%
	}
%>

<table cellpadding="0" cellspacing="0" width="700" align="right">
	<tr>
		<td width="180">&nbsp;</td>
		<td align="left">
			<%=request.getAttribute("paging") %>
		</td>
		<td valign="middle">
			<a href="/KOMORIUTA/BCBoardAction.do?action=cm_bc_write_form&nick=<%=nick %>"><img src="/KOMORIUTA/photo/img/Cm_Free_Read_Write.png"/></a>
		</td>
	</tr>
</table>

<table cellpadding="0" cellspacing="0" width="700" align="center">
	<tr>
		<td align="center">
			<select name="search">
			<option value="bc_contents">内容</option>
			<option value="bc_title">タイトル</option>
			<option value="bc_nick">作成者</option>
			</select>
			<input type="text" name="searchword" />
			<input type="submit"  class="btn_Search" value=""/>
		</td>
	</tr>
</table>
</form>


<!-- 
<div style="position:relative;left:40px;width:602px;height:50px;background-image:url('photo/img/bar.jpg');">
</div>
<div style="position:relative;left:45px;width:600px;height:auto;border:0px solid black;">
	<%
	for(BCBoardBean bCBoardBean :datas){
	%>
	<div id="aa">
 	<table border=0 cellpadding=0 cellspacing=0>
		<tr height="20" id="bb">
		<td width="50"><%= bCBoardBean.getId() %></td>
		<td width="340">
		<%if(bCBoardBean.getRe_step()>0){
			for(int a=0;a<=bCBoardBean.getRe_level()*2;a++){
		%>
		&nbsp;
		<%
			}
			%>
			└[re]:
			<%
		}
		%>
		<a class="black" href="/KOMORIUTA/BCBoardAction.do?action=cm_bc_read&id=<%=bCBoardBean.getId() %>&nick=<%=nick %>" >
		<%= bCBoardBean.getBc_title() %></a>
		</td>
		<td width="100"><%= bCBoardBean.getBc_nick() %></td>
		<td width="110"><%= bCBoardBean.getBc_date() %></td>
		<td width="60"><%= bCBoardBean.getBc_viewcount() %></td>
		</tr>
	</table>
	</div>
<%
	}
%>
</div>
<div style="position:relative;left:100px;">
<table>
	<tr>
		<td><%=request.getAttribute("paging") %></td>
		<td><a href="/KOMORIUTA/BCBoardAction.do?action=cm_bc_write_form&nick=<%=nick %>"><img src="/KOMORIUTA/photo/img/button.jpg" border=0 /></a></td>
	</tr>
</table>
</div>

<table border=0 width="600" align="center">
	<tr>
	<td>
	<select name="search">
	<option value="bc_contents">内容</option>
	<option value="bc_title">タイトル</option>
	<option value="bc_nick">作成者</option>
	</select>
	<input type="text" name="searchword" />
	<input type="submit" value="検索" />
	</td>
	</tr>
</table>
</form>

 -->

</body>
</html>